<!-- 个人中心导航 -->
<template>
  <div class="nav-container">
    <div class="left">
      <div class="item">
        <span class="icon"></span>
      </div>
      <router-link :to="{name:'home'}" class="item text">
        首页
        <span></span>
      </router-link>
      <router-link :to="{name:'updata'}" class="item text">
        修改信息
        <span></span>
      </router-link>
    </div>
  </div>
</template>

<script setup>
import Icon from "@/components/Icon/index.vue"
</script>

<style lang="less" scoped>
@import "@/styles/var.less";
.nav-container {
  width: 100%;
  height: 70px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  .left {
    height: 100%;
    flex:1;
    display: flex;
    align-items: center;
  }
  .rigth{
    height: 100%;
    border: 1px solid red;
    flex: 1;
  }
  .icon {
    width: 25px;
    height: 25px;
    border: 3px solid #fff;
    border-radius: 5px;
    transform: rotate(45deg);
    display: block;
    margin-top: 11px;
  }
  .item {
    margin-right: 60px;
    font-size: 18px;
    height: 45px;
    line-height: 45px;
  }
  .text {
    cursor: pointer;
    position: relative;

    span {
      transition: all 0.5s;
      position: absolute;
      left: 0;
      bottom: 0;
      display: block;
      width: 0;
      height: 3px;
      background: @suspension;
    }
  }
  .text:hover span {
    width: 100%;
  }
  .text:hover {
    color: @suspension;
  }
}
</style>